home *** CD-ROM | disk | FTP | other *** search
/ Disc Station 20 / Disc Station Vol 20.ISO / Drivers / Iodata / Gadrtvat / drtv1122.exe / DISK.EXE / WINNT35 / OEMSETUP.INF < prev    next >
INI File  |  1996-05-23  |  20KB  |  583 lines

  1. ;-----------------------------------------------------------------------
  2. ; Windows NT 3.5 Display Driver for I-O DATA GA-DRTVx/PCI 
  3. ;-----------------------------------------------------------------------
  4. ; OPTION TYPE
  5. ; -----------
  6. ; This identifies the Option type we are dealing with.  The different
  7. ; possible types are:
  8. ;
  9. ; COMPUTER, VIDEO, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
  10. ;-----------------------------------------------------------------------
  11.  
  12. [Identification]
  13.     OptionType = VIDEO
  14.  
  15. ;-----------------------------------------------------------------------
  16. ; LANGUAGES SUPPORTED
  17. ; -------------------
  18. ;
  19. ; The languages supported by the OEM INF, For every language supported
  20. ; we need to have a separate text section for every displayable text
  21. ; section.
  22. ;
  23. ;-----------------------------------------------------------------------
  24.  
  25. [LanguagesSupported]
  26.     ENG
  27.  
  28. ;-----------------------------------------------------------------------
  29. ; OPTION LIST
  30. ; -----------
  31. ; This section lists the OEM Option key names.  These keys are locale
  32. ; independent and used to represent the option in a locale independent
  33. ; manner.
  34. ;
  35. ;-----------------------------------------------------------------------
  36.  
  37. ;
  38. ; Option list order: Option = Miniport driver, BitsPerPel, XResolution, YResolution, VRefresh, Interlaced
  39. ;
  40. ; If you don't want to create a VRefresh or Interlaced value under the service
  41. ; parameters then use the value ""
  42. ;
  43.  
  44. [Options]
  45.     "I-O DATA GA-DRTVx/PCI"    = dragt,    8, 640,  480, 60 , 0
  46.  
  47. ;
  48. ; This maps detected options into the options we support
  49. ;
  50. ; Format: DetectedOption = MappedOption
  51. ;
  52.  
  53. [MapOfOptions]
  54.     "VGA"                       = "VGA"
  55.     "COMPAQ AVGA"               = "VGA"
  56.     "COMPAQ AGB"                = "VGA"
  57.     "8514 MONITOR UNKNOWN"      = "VGA"
  58.     "8514 VGA MONITOR"          = "VGA"
  59.     "8514 8503 MONO"            = "VGA"
  60.     "8514 8514 GAD"             = "VGA"
  61.     "GENOA VGA"                 = "VGA"
  62.     "VIDEO7 VGA DRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  63.     "VIDEO7 VGA VRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  64.     "Trident VGA"               = "VGA"
  65.     "Trident VGA 9100"          = "VGA"
  66.     "PARADISE VGA"              = "VGA"
  67.     "PARADISE VGA PROM"         = "VGA"
  68.     "PARADISE VGA CHIP 1F"      = "VGA"
  69.     "ATI VGA"                   = "VGA"
  70.     "ATI VGA WONDDER3"          = "VGA"
  71.     "TSENGLAB VGA ET3000"       = "VGA"
  72.     "TSENGLAB VGA ET4000"       = "TSENGLAB VGA ET4000 640x480x4x60"
  73.     "CIRRUS VGA"                = "VGA"
  74.     "CIRRUS VGA 610-620 REVC"   = "VGA"
  75.     "XGA"                       = "XGA 640x480x8"
  76.     "DELL DGX"                  = "DELL DGX 640x480x8"
  77.     "S3 VGA"                    = "S3 VGA 640x480x8"
  78.     "PRODESIGNER II"            = "TSENGLAB VGA ET4000 640x480x4x60"
  79.  
  80.  
  81. ;
  82. ; Order of the information:
  83. ;
  84. ; Port driver = Type, Group, ErrorControl, Tag, InstalledDisplay, VgaCompatible( 0/1 ), EventMessageFile, TypesSupported
  85. ;
  86.  
  87. [MiniportDrivers]
  88.   dragt = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, 11,  {dragt08,dragt16,dragt24,dragt32}, 1 , %SystemRoot%\System32\IoLogMsg.dll , 7
  89.  
  90.  
  91. ;-----------------------------------------------------------------------
  92. ; OPTION TEXT SECTION
  93. ; -------------------
  94. ; These are text strings used to identify the option to the user.  There
  95. ; are separate sections for each language supported.  The format of the
  96. ; section name is "OptionsText" concatenated with the Language represented
  97. ; by the section.
  98. ;
  99. ;-----------------------------------------------------------------------
  100.  
  101. [OptionsTextENG]
  102.     "I-O DATA GA-DRTVx/PCI"    = "I-O DATA GA-DRTVx/PCI"
  103.  
  104.  
  105. ;---------------------------------------------------------------------------
  106. ; 1. Identify
  107. ;
  108. ; DESCRIPTION:   To verify that this INF deals with the same type of options
  109. ;                as we are choosing currently.
  110. ;
  111. ; INPUT:         None
  112. ;
  113. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  114. ;                $($R1): Option Type (COMPUTER ...)
  115. ;                $($R2): Diskette description
  116. ;---------------------------------------------------------------------------
  117.  
  118. [Identify]
  119.     ;
  120.     ;
  121.     read-syms Identification
  122.  
  123.     set Status     = STATUS_SUCCESSFUL
  124.     set Identifier = $(OptionType)
  125.     set Media      = #("Source Media Descriptions", 1, 1)
  126.  
  127.     Return $(Status) $(Identifier) $(Media)
  128.  
  129.  
  130.  
  131. ;------------------------------------------------------------------------
  132. ; 2. ReturnOptions:
  133. ;
  134. ; DESCRIPTION:   To return the option list supported by this INF and the
  135. ;                localised text list representing the options.
  136. ;
  137. ;
  138. ; INPUT:         $($0):  Language used. ( ENG | FRN | ... )
  139. ;
  140. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL |
  141. ;                                STATUS_NOLANGUAGE
  142. ;                                STATUS_FAILED
  143. ;
  144. ;                $($R1): Option List
  145. ;                $($R2): Option Text List
  146. ;------------------------------------------------------------------------
  147.  
  148. [ReturnOptions]
  149.     ;
  150.     ;
  151.     set Status        = STATUS_FAILED
  152.     set OptionList     = {}
  153.     set OptionTextList = {}
  154.  
  155.     ;
  156.     ; Check if the language requested is supported
  157.     ;
  158.     set LanguageList = ^(LanguagesSupported, 1)
  159.     Ifcontains(i) $($0) in $(LanguageList)
  160.         goto returnoptions
  161.     else
  162.         set Status = STATUS_NOLANGUAGE
  163.         goto finish_ReturnOptions
  164.     endif
  165.  
  166.     ;
  167.     ; form a list of all the options and another of the text representing
  168.     ;
  169.  
  170. returnoptions = +
  171.     set OptionList     = ^(Options, 0)
  172.     set OptionTextList = ^(OptionsText$($0), 1)
  173.     set Status         = STATUS_SUCCESSFUL
  174.  
  175. finish_ReturnOptions = +
  176.     Return $(Status) $(OptionList) $(OptionTextList)
  177.  
  178.  
  179.  
  180. ;---------------------------------------------------------------------------
  181. ; MapToSupportedOption
  182. ;
  183. ; DESCRIPTION:   To map a hardware detected option to the NT Supported
  184. ;                option which represents it.
  185. ;
  186. ; INPUT:         $($0): Option
  187. ;
  188. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  189. ;                $($R1): Mapped Option
  190. ;
  191. ;---------------------------------------------------------------------------
  192.  
  193. [MapToSupportedOption]
  194.     ;
  195.     set Status = STATUS_FAILED
  196.     set MappedOption = $($0)
  197.  
  198.     ;
  199.     ; If the option is one we can support using one of our standard options
  200.     ; then map it to the standard option else map it to the default option
  201.     ; which is VGA.
  202.     ;
  203.  
  204.     set OptionList = ^(MapOfOptions, 0)
  205.     ifcontains $($0) in $(OptionList)
  206.         set MappedOption = #(MapOfOptions, $($0), 1)
  207.     else
  208.         set MappedOption = "VGA"
  209.     endif
  210.  
  211.     set Status = STATUS_SUCCESSFUL
  212.     Return $(Status) $(MappedOption)
  213.  
  214.  
  215.  
  216. [ServicesEntry]
  217.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  218.  
  219.  
  220. ;
  221. ; InstallOption:
  222. ;
  223. ; FUNCTION:  To copy files representing Options
  224. ;            To configure the installed option
  225. ;            To update the registry for the installed option
  226. ;
  227. ; INPUT:     $($0):  Language to use
  228. ;            $($1):  OptionID to install
  229. ;            $($2):  SourceDirectory
  230. ;            $($3):  AddCopy  (YES | NO)
  231. ;            $($4):  DoCopy   (YES | NO)
  232. ;            $($5):  DoConfig (YES | NO)
  233. ;
  234. ; OUTPUT:    $($R0): STATUS: STATUS_SUCCESSFUL |
  235. ;                            STATUS_NOLANGUAGE |
  236. ;                            STATUS_USERCANCEL |
  237. ;                            STATUS_FAILED
  238. ;
  239.  
  240. [InstallOption]
  241.  
  242.     ;
  243.     ; Set default values for
  244.     ;
  245.     set Status       = STATUS_FAILED
  246.     set DrivesToFree = {}
  247.  
  248.     ;
  249.     ; extract parameters
  250.     ;
  251.     set Option   = $($1)
  252.     set SrcDir   = $($2)
  253.     set AddCopy  = $($3)
  254.     set DoCopy   = $($4)
  255.     set DoConfig = $($5)
  256.  
  257.     ;
  258.     ; Check if the language requested is supported
  259.     ;
  260.     set LanguageList = ^(LanguagesSupported, 1)
  261.     Ifcontains(i) $($0) in $(LanguageList)
  262.     else
  263.         set Status = STATUS_NOLANGUAGE
  264.         goto finish_InstallOption
  265.     endif
  266.     read-syms Strings$($0)
  267.  
  268.     ;
  269.     ; check to see if Option is supported.
  270.     ;
  271.  
  272.     set OptionList